package cn.torna.service.dto;

import cn.torna.common.support.IdCodec;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

@Data
public class AllocateProjectV2DTO {
    @JSONField(serializeUsing = IdCodec.class, deserializeUsing = IdCodec.class)
    private Long userId;


    //@JSONField(serializeUsing = IdCodec.class, deserializeUsing = IdCodec.class)
    private List<AllocateProjectParamItem> projects;

    @Data
    public static  class AllocateProjectParamItem{
        @JSONField(serializeUsing = IdCodec.class, deserializeUsing = IdCodec.class)
        private Long id;
        private byte isProject;
        private String roleCode;
        @JSONField(serializeUsing = IdCodec.class, deserializeUsing = IdCodec.class)
        private Long parentId;
    }
    
}